package com.example.demo.model;

import com.example.demo.util.DateUtils;
import lombok.Data;

import java.util.Date;

@Data
public class Blog {
    private Integer id;
    private String title;
    private String content;
    private Integer userId;
    private Integer deleteFlag;
    //true：登录用户就是该作者
    private Integer loginUser;
    private Date createTime;
    public String getCreateTime(){
        return DateUtils.format(createTime);
    }
}